/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAOS;

import java.sql.*;

/**
 *
 * @author curso
 */
public class DAOGenerico {
    protected Connection conexion;
    
    public void conectar() throws ClassNotFoundException, SQLException{
        Class.forName("com.mysql.jdbc.Driver");
        conexion = DriverManager.getConnection("jdbc:msyql://198.168.0.4/pollomail","root","hola123");
    }
    
    public void desconectar() throws SQLException{
        conexion.close();
    }
    
}
